public void paintComponent(Graphics g)
    {
        super.paintComponent(g);
        int h = this.getHeight();
        int w = this.getWidth();
        g.setColor(background);
        g.fillRect(0, 0, w, h);

        if (this.image != null)
        {
            int wb = (w - this.image.getWidth()) / 2;
            int hb = (h - this.image.getHeight()) / 2;
            g.drawImage(image, wb, hb, this);
        }
    }