optimize images, take two, including ipad fix