Hack to fix autoscaling behavior of image plots after manual resizing