Add EXR support and image functions.

Add exru submodule
Add some rectangle functions
Add support for exporting to EXR.

This commit adds a dependency on libexru.