Improve photo uploading