Window size affects drawing