Seems to have fixed some of the issues around gc and threaded image search -
will test a bit before merging to master