Fix crash when using pentool/penciltool on camera layer