Dynamic search results display for jpeg and png working