scale down images that are too large and adjust html size attributes accordingly