public void render() {
		BufferStrategy bs = getBufferStrategy();
		if(bs == null) {
			createBufferStrategy(3);
			return;
		}
		
		Graphics g = bs.getDrawGraphics();
		
		canvas.render();
		
		for(int i = 0; i < pixels.length; i++) {
			pixels[i] = canvas.pixels[i];
		}
		
		g.drawImage(image, 0, 0, getWidth(), getHeight(), null);
		
		g.setColor(Color.WHITE);
		g.drawString(Main.ups + "UPS, " + Main.fps + "FPS", 20, 20);
		
		g.dispose();
		bs.show();
	}