revert Graphics::_createPattern because it's also called from shape.js