public void draw(Graphics g, Component frame) {
        if (isVisible()) {
            g.drawImage(img.getImage(), x, y, img.getIconWidth() * SCALE, img.getIconHeight() * SCALE, frame);
        }
    }