One more check until gapi is loaded for real.
Refactored HutImgCtrl into a service.
merge