Fix not being able to delete images