Solve PhotoUpload Bugs