maxWidth option added
bugfix