Changed the code for the homepagephotos action. Previous version only looked randomly at the data in the trim table. The updated version now check ncp_images table to see if we have preferred images prior to going to a random approach