Move canvas frame to separate file