Search mostly working. Image and file results filtered into a global variable to be displayed separately from main results.