Remove header() from loadSortedImages.php