copy Rectangle implementation