lengthened canvas in case of changing window size after load