Add constructor that takes Rectangle.