added sample method to photo_worker