try to use photo dao to search images