Use container size, if we have one, instead of screen size.

Instead of using the screen as the size for the image (map) we can check if the container element has a size and use that instead. Large images (on the desktop if the breakpoint is over 640px) require a business API key.