ensure binary data (1.9+) from optimize_image_data and optimize_images_data