Created a factory for LocalImageService.