Add support for transforming images when loading them (pt II).