[Olena-patches] 2603: Factor tests/core/image/complex_image.cc.