genericize loadGraphics by requiring arguments.