Added a timeout to canvas size recalculation to account for style parsing slowness