Graphics g = img.getGraphics();
g.drawImage((bufimg, 0, 0, null);