added a way to update the image on an entity