Split out separate uploadImage function