Added the capability to save RGB and depth to a .m file