Added webm support and window resize