Fixes issue with media elements not resizing on load