fixed bug in result.php, updated ajax.php for new WC image gallery functionality.