fix getting extension from photo
Add IDE hints
Merge branch 'hotfix/photo_error_fix' into develop

* hotfix/photo_error_fix:
  Add IDE hints
  fix getting extension from photo

Conflicts:
	lib/App.php