photo upload improvement