How do you freely rotate sprites?

You just have to position the cursor in the right places. For rotation you have to position it on the top right/left corner of the selection box, and for streacthing you have to position it right on the top-center of the selection box, like I marked in the image