Improved Functionality

Instead of setting widths for the images it now detects the width set on
images and uses that information to build the inner and outer divs.