Auto-adjust image map coordinates for large images on small screens.

Special thanks to Teemu -- http://stackoverflow.com/a/13322059 -- for inspiring this beautiful piece of code!