delete object with mainImage