New texture/shape rendering code with color tinting added and working