Fix for JCLOUDS-655

First time committing to jclouds, let me know if there are any style guidelines I missed with this change.
And also an `ImageAdapterTest`. We need to unit test this class itself.