utils: finished rewriting translate_images_1to2, ref #94