Trying to make upload photos functional