Use isAcceleratedContext() on the GraphicsContext instead of flags in ImageBuffer