Used frame instead of rectangle from draw in iOS rendering.