to be compilable with 3.0 use Reflection to call Image.setColorSpace (for gamma correction)