remove unnecessary image object