refactor image search on tags