public void setCard(Card card) {
        if (gameCard != null && gameCard.equals(card) && isAnimationPanel && imagePanel.hasImage()) return;
        this.gameCard = card;
        if (!isShowing()) return;
        Insets i = getInsets();
        Image image = card == null ? null : ImageCache.getImage(card, getWidth() - i.left - i.right, getHeight()
                - i.top - i.bottom);
        if (gameCard != null && Gui_NewGame.cardOverlay.isSelected()) {
            setText(gameCard);
        }

        setImage(image, image);
    }