Add a factory for generating image mediafiles