Support bitdepth=16 when writing PPM format
Add "rec709" colorspace option