Drawing logic design update

Added the layer delete method.