How to collect and use photoCaptures and screenshots during runtime