added support for the new image interface