public void buildBufferedImages(Frame[] f) throws IOException{
		int height = m.frames[0].height;
		int width = m.frames[0].width;
		System.out.println("h:" + height + " w:" + width);
		while(height > frameHeight || width > frameWidth){
			height = (int)(height * .99);
			width = (int)(width * .99);
		}
		System.out.println("h:" + height + " w:" + width);
		images = new BufferedImage[f.length];
		icons = new ImageIcon[f.length];
		for(int i = 0; i < f.length;i++){
			images[i] = ImageIO.read(new ByteArrayInputStream(f[i].bytearray));
			icons[i] = new ImageIcon(images[i]);
			icons[i] = new ImageIcon(icons[i].getImage().getScaledInstance(width,height,java.awt.Image.SCALE_SMOOTH));
		}
		//icons[i] = new ImageIcon(images[i]);
		//set[i] = icons[i].getImage().getScaledInstance(500, 500,java.awt.Image.SCALE_SMOOTH);
		//icons[i] = new ImageIcon(set[i]);
		
	}