Added drag and drop interface for inserting figures