added frontend for image file removal in edit form

plus improved return_images function