Moved render mode in mesh initialise