why don't we call here cleanupImg() ?