Now correctly calculates canvas size when video is loaded