How To Use It:
$dir="./"; - This is the path (directory) to the images, it must include the foward slash.
$nimg="10"; - Number of images in the folder.
$itype="jpg"; - The image type (don't Include the ".").
$bor="1"; - The image border, 0 is no border, 1 is a 1 pixel border.