Index page: text/image ID now pulled out of DB in same query for faster
page loading