Fixes photo upload