Try to be compatible with the version 2 of IMGAPI

* see https://images.joyent.com/docs/