Add to_image to public API