Update photo.js

Added unit tests for processPhotoUpload