Refactored alot of the document.createElements to proper $(). tags as well as refactored the attributes and appends.

Working on  replacing the getImage functions createElements, attributes
etc now.