delete image file and config