Update swapImages.php