purge old thumbnails once a day in img.php