uses php and ajax to load smaller images based on measured widths