changed photo uploader methods