auto-size grid images based on primary image aspect ratios