private BufferedImage generateImg(Sprite s, int type){
		BufferedImage img = new BufferedImage(s.WIDTH, s.HEIGHT, type);
		int[] px = ((DataBufferInt) img.getRaster().getDataBuffer()).getData();
		
		for(int x = 0; x < s.WIDTH; x++){
			for(int y = 0; y < s.HEIGHT; y++){
				if(s.pixels[x+y*s.WIDTH] == 0xff000000){
					px[x+y*s.WIDTH] = 0x000000;
					continue;
				}
				px[x+y*s.WIDTH] = s.pixels[x+y*s.WIDTH];
			}
		}
		return img;
	}