Added 'matrix' and 'range' config

Can choose Rec 601 or Rec 709 matrix and 'studio' or 'computer' RGB
value ranges (i.e. 16..235 or 0..255). Also speeded up scaling by using
OpenCV instead of SciPy interpolation.