Update imlib

* Use image for imlib functions
* Rename some types