Bug fix for my-image-dimensions-minor-mode.