Minor changes to FastScaler.
Set swscale color space to BT.709 as well.

Also some minor refactoring.