Added new render code

- Not 100% finished yet but it is modular
- Mainly the transformations are mssing and the masks