Added AA option and changed sRGB detection.