clean up bad image calls