PLA-1504 rewrite FixVisualizationImage script (wip)

@SebastianMarzjan