implemented some first steps towards a 2d rendergraph