Added maxWidth and maxHeight for sizes.

Sometimes there may be the need to limit the maximum size of a modal to be consistent in size/layout for the user.