added maxWidth support