Function filterImageQuery
performs a query and then filters out "illegal" images returning the first "good" image used by the random image functions.
object |
$result |
query result |
string |
$source |
album object if this is search within the album |