fixed bug where imageUrl was blank after edit