$newimage = GD::Image->copyMerge($image, $small, 100, 100, 0, 0, $width, $height, 50);