Implemented rotation, but there are two bugs. One unknown about texts, the other is due to the lines being rotated around their top-left corner. Fixing them now..