Number of images in each row is determinated by width of the table