Changed image data to type mxGPUArray and added more I/O methods