https://www.php-resource.de/en/script/PHP-Scripts/Image-Handling--Processing/Php-Gallery-0-96_13937