protected BufferedImage getImage()
    {
        if ((System.currentTimeMillis() - systemTime) > frameSpeed)
        {
            systemTime = System.currentTimeMillis();
            if (animationFrame == animation.length)
            {
                animationFrame = 0;
            }
            BufferedImage crop = sprite.getSubimage((int) frames.get(animation[animationFrame]).getX(),
                    (int) frames.get(animation[animationFrame]).getY(),
                    (int) frames.get(animation[animationFrame]).getWidth(),
                    (int) frames.get(animation[animationFrame]).getHeight());
            animationFrame++;
            spritePart = crop;
        }
        return spritePart;
    }