ImageRegistry(
ResourceManager manager)
Creates an empty image registry using the given resource manager to allocate images.
LocalResourceManager(
ResourceManager parentRegistry)
Creates a local registry that delegates to the given global registry
for all resource allocation and deallocation.