The DrimageController class inherits from a parent that implements Symfony\Component\DependencyInjection\ContainerInterface, and should therefore use a dependency injection container instead of calling \Drupal::service() directly.
Followup from your full project application at #2742459: [D8] drimage. Nice module, I will use it.
Comments
Comment #3
weseze commentedFixed.
Comment #4
weseze commented