Implemented deleting objects from a canvas