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: