rewrite FixVisualizationImage script