function img will generate html tag for each image according to parameters; This allows to easily use caching and click-enlarging of images.
... To be filled out ..
This function uses (2x) caching! Every change needs the cache to be cleared.
<?php
echo "<div style='display:block;'>";
$chk = img("./img/gallery/IMG_9187.jpg", "", "", true, true, 320);
$chk .= img("./img/gallery/IMG_8419.jpg", "", "", true, true, 240);
echo $chk;
echo "</div>";
?>