linked coreGraphics to fix error