Fixed broken pagination for get_images.php