Comments. Fixed corner radius code to use the half height of the view.