add methodoverride middleware and delete image