Fixed the pen leaving canvas bug

Part of the perfecting challenge