added support for editing the foreground canvas layer, added delete from main canvas functionality