calculate_model_image, compiles