adds semi-funtioning method to upload photos