Adding optional 'max-width' option to popup-create