Paste one image into another with Imagine

Code
<?php

use Imagine\Gd\Imagine;
use 
Imagine\Image\Box;
use 
Imagine\Image\Point;

$imgPath 'php_logo.png';

$imagine = new Imagine();
$imageBase $imagine->open($imgPath);
$image $imagine->open($imgPath);

$original base64_encode($imageBase->get('png'));

$image->resize(new Box(8080));
$imageBase->paste($image, new Point(00));

$edited base64_encode($imageBase->get('png'));

echo 
'original:<br><img src="data:image/png;base64,' $original '">' PHP_EOL;
echo 
'edited:<br><img src="data:image/png;base64,' $edited '">' PHP_EOL;
Result
original:

edited:
Used Versions
PHP 8.2, Laminas MVC 3.2, Symfony 5.2, Laravel 8.28, PHPUnit 9.5, Doctrine ORM 2.8