Fix working "Register Image" button

This patch based on: https://review.openstack.org/#/c/108812/

Change-Id: Ie4c7036aa5d52185937ae4c5585079c8dd13b320
Closes-bug: #1347829