Added cornerRadiusWhenCentered property so the displayed view can have rounded corners when presented centered.