See inside.
This method of drawing a pen circle is much faster than the normal trigonometric one. I added some more configuration parameters. Still based on @amneicul's experiment. Note: Sept. 20 - Switched to automatic background color detection.