Adding overridable method for context and pixel format manipulation