Added resize logic, adjusted renderer, spun-out geometry logic.