GUI-1444 add proper checks around auth code for create_image

add proper checks around auth code for create_image

https://eucalyptus.atlassian.net/browse/GUI-1444