Add scale/offset filter support.
Merge branch 'scaleoffset'