update photo upload method and form