rewrite create image integration test