added read write pixel value on mat images