add resizeToFitHorizontallyWithMaxWidth