idx2 draws canvas