Adds "readPixels" API to BaseTest