Fix bugs on doc registering an image

corrected errors in registering_image.rst

Change-Id: I98cfc8ece915d6fd24b3a9f78192e064efca4164
Closes-Bug: #1386402