core-bundle/src/Resources/contao/library/Contao/Controller.php
public static function generateImage($src, $alt='', $attributes='')
	{
		@trigger_error('Using Controller::generateImage() has been deprecated and will no longer work in Contao 5.0. Use Image::getHtml() instead.', E_USER_DEPRECATED);

		return Image::getHtml($src, $alt, $attributes);
	}
public static function generateImage($src, $alt='', $attributes='')
	{
		@trigger_error('Using Controller::generateImage() has been deprecated and will no longer work in Contao 5.0. Use Image::getHtml() instead.', E_USER_DEPRECATED);

		return Image::getHtml($src, $alt, $attributes);
	}
Generate an image tag and return it as string

@param string $src        The image path
@param string $alt        An optional alt attribute
@param string $attributes A string of other attributes

@return string The image HTML tag

@deprecated Deprecated since Contao 4.0, to be removed in Contao 5.0.
Use Image::getHtml() instead.