Added delete image functionality