Revert obsolete modifications to getimages.php