apply the ROI _after_ decoding the image