Improve photo uploading performance