Fix min/max display range for resliced images

Fixes #10092.