Fix ajax photo uploader