Limit image sizes to superview width in attributed strings