Fixed bug with update/delete images