updated camera system and rendering functions