Gregwar's Image Bundle is now compatible with Symfony 4, so use it insteadUpdate:
Gregwar's Image Bundle working with Symfony 4 and composer:This is a fork of
composer require arkounay/gregwar-image-bundle
gregwar_image: web_dir: '%kernel.project_dir%/public'
Read the original documentation here.
This bundle is under MIT license