Added API for specifying image loaders