Check canvas size on paint.