photo upload almost fixed resolution problem