fixed createMat so it looks correct on image