Fixes photo Upload