Added log levels to the Debug class.  Also, fixed the base template to start removing width and height attributes from both div and img.  This may expand to other elements going forward.