fix adding photos with the multi file upload