Issue LIBCLOUD-455: validate image id

https://issues.apache.org/jira/browse/LIBCLOUD-455