void printSprite()
{
    //Get the current sprite path

    NodeList listOfMovesSprites = sprites_doc.getElementsByTagName("Move");
    
    boolean sprite_found=false;

    for(int s=0; s<listOfMovesSprites.getLength() ; s++)
    {
        Node move_node = listOfMovesSprites.item(s);
        Element move_element = (Element)move_node;
        if(move_element.getAttribute("name").equals(list_moves.getSelectedValue()))
        {
            for(Node sprite=move_node.getFirstChild();sprite!=null;sprite=sprite.getNextSibling())//Sprite loop
            {
                if(sprite.getNodeName().equals("Sprite"))
                {
                    String frame_number = "frame " + ((Element)sprite).getAttribute("frame_number");
                    if(frame_number.equals((String)list_frames.getSelectedValue()) )
                    {
                        sprite_found=true;
                        String sprite_path="/"+((Element)sprite).getAttribute("path");
                        
                        int align_x=Integer.parseInt(((Element)sprite).getAttribute("align_x"));
                        int align_y=Integer.parseInt(((Element)sprite).getAttribute("align_y"));

                        double scale=(double)Integer.parseInt(((Element)sprite).getAttribute("scale"));
                        //Print sprite
                        ((ImagePanel)image_panel).setImage(directory_path+sprite_path,align_x,align_y,scale);
                        label_current_sprite.setText(sprite_path);
                    }
                }
            }
        }
    }
    if(!sprite_found)
    {
        ((ImagePanel)image_panel).setImage("assets/LogoEngine.png");
        label_current_sprite.setText("assets/LogoEngine.png");
    }
}