Fixed the bug regarding the basic representation of an image

* Confusion between row-column indexing and x-y indexing.