Putting in IoC for platform-specific image factories