Added rotation to pen.rect