Fixed issue with pen tool where null reference expceptions were thrown
due to concurrency issue resulting in the shape field sometimes refering
to null. This was fixed by making a JComponent dedicated to due the
painting and then managing the adding/removing to the production panel
properly.

Signed-off-by: Jakob Brandsborg Ehmsen <jakobehmsen.github@gmail.com>