commit image on upload