updated delete function for images, ui updated