Fix photo upload (still not finished)