get canvas size when do snapshot