Refactor ResampleToImage for performance
Probably very minor efficiency improvement but saw it while looking at other stuff so figured I'd make the change.
Probably very minor efficiency improvement but saw it while looking at other stuff so figured I'd make the change.