GUI-1079: Allow images to be de-registered from the cloud

Implements https://eucalyptus.atlassian.net/browse/GUI-1079
should wrap in a "with"