Wrote new render code so textures are aligned properly.