More gfx tests

This adds three failing tests and fixes one of them (by taking x, y, width, height into account in contextToRgbData).