query and view data and image