faster image-grep with propper filtering #3