setting max width on rendered image