Make upload single photo work