added implicit cast to RGXA and fixed a couple of issues in RGB and RGBXA