Changed image source to use OpenCL standard defines to determine version. Added type trait for matrix to check for row or column major data layout.