Rotate rectangle changing border color