fixed the lag issue (g2d = bi.getGraphics)