Changed some reference/pointer members, unique_ptr->shared_ptr for rendermodes.