fixed null error
Clean up
Merge pull request #295 from codeitandloadit/fixPhotoError

Fix photo error