Setting up background processing and storing of images