random image query moved to named query annotation