fixed the ability to delete images