private BufferedImage createTile(int tile){
		int sheetWidth = sheet.getWidth()/width;
		int yOrigin = tile / sheetWidth;
		int xOrigin = tile % sheetWidth;
		if(xOrigin<sheet.getWidth()&&yOrigin<sheet.getHeight()){
			BufferedImage image = new BufferedImage(width, height, BufferedImage.TYPE_INT_ARGB);
			for (int x = 0;x<width;x++){
				for (int y =0; y<height;y++){
					if((xOrigin*width)+x<sheet.getWidth()&&(yOrigin*height)+y<sheet.getHeight()){
						image.setRGB(x,y,sheet.getRGB((xOrigin*width)+x, (yOrigin*height)+y));
					}else{
						image.setRGB(x, y, new Color(0f,0f,0f,0f).getRGB());
					}
				}	
			}
			return image;
		}else{
			return null;
		}
	}