relocated pen translation and repainting call to the document-view, where they should be.