use 0.6 version of imagine, and update image instantiation