added CRUD functionality for figs. Fixed canvas bug