public static BufferedImage[] loadImageStripe(String filename, int numberOfImages){
        BufferedImage strip;
        if(numberOfImages <= 0){
            System.out.println("numberOfImages <= 0");
            return null;
        }
        if((strip = loadImage(filename)) == null){
            System.out.println("filename is null");
            return null;
        }
        int frameWidth = strip.getWidth()/numberOfImages;
        int frameHeight = strip.getHeight();
        int transparency = strip.getColorModel().getTransparency();
        BufferedImage frames[] = new BufferedImage[numberOfImages];
        Graphics2D g2d;
        for(int i = 0; i < numberOfImages; i++){
            frames[i] = gc.createCompatibleImage(frameWidth, frameHeight, transparency);
            g2d = frames[i].createGraphics();
            g2d.drawImage(strip.getSubimage(i * frameWidth, 0, frameWidth, frameHeight),0,0,frameWidth, frameHeight, null);
//            g2d.drawImage(strip,0,0,frameWidth,frameHeight,i*frameWidth,0,(i*frameWidth)+frameWidth,frameHeight,null);
            g2d.dispose();
        }
        return frames;
    }