fixed some issues with metricsUtils and Capture/Restore functionality (window resize doesn't work in all browsers)