Organize ppu render code more