Added pict and scaling support.

Tested locally.