Refactored the ViewElement class by moving some rendering code to
Renderer.
Added the files. Forgot to do so earlier.