updated pictures controller to display images while they are being processed