shrink images if they are too wide