photo upload fix