fixed image query not using or instead of and steatment.