set max-width for image element