added process_in_background in photo.rb; added debugging statements in perform