Fix image scaling issue

I didn't notice this for images with vmax=0 (like A SIR images), but it
shows up in other cases.