Added an option to size based on a container

Allow a user to define the container to resize the image against.  By
default, it will be the browser window, but can be a wrapper DIV
instead.