delete unnecessary imgs