modified photoSearch