canvas resizes, but not drawing