Added delete image functionality.