Fix for modifying photo, so it doesn't show any notice error.