still do not understand the result of simple 3 x 3 array
changed the way to call <unsigned char*> img1.data instead of contiguous arrays and pointer to &img1[0,0]