added new feature "maxWidth" and "maxHeight" + example page