Added delete functionality for images