Updated CGRect methods to include xOrigin and yOrigin