Process photos in the background