Graphics g = bs.getDrawGraphics();
// draw the canvas image
g.drawImage(image, 0, 0, getWidth(), getHeight(), null);
// dispose gfx and draw buffer
g.dispose();
bs.show();
}
// main game loop, starts the components
public static void main(String[] args) {
// create a new game component