generate random images when query is empty