updated image handling and interaction in edit view