test_image: changed getters to return size_t, introduced pitch() getter.