moved loadGraphics to Common.js