Updated to handle user defined cameras