removed perspective code. Switched to 2d buffers