Recode canvas draw and add animation layers through tpanel.js