Update application_controller.rb

Update photo_submit common method