Fixed drawing code to properly resize canvas in the case of y-overflow.