What are the implications of the change in PHP 8.0.0 where the image function now expects a GdImage instance instead of a valid gd resource?

In PHP 8.0.0, the image function now expects a GdImage instance instead of a valid gd resource. To solve this issue, you need to create a GdImage instance from the gd resource using the `GdImage::createFromGdResource` method provided by the `GdImage` class.

// Create a GdImage instance from the gd resource
$gdResource = imagecreatefromjpeg('image.jpg');
$gdImage = GdImage::createFromGdResource($gdResource);

// Now you can use the $gdImage instance with the image function
image($gdImage, 0, 0, 0, 0, imagesx($gdResource), imagesy($gdResource));