Sets avatar image max-width based on input field.