Improved performance + solved FOUC

Improved performance of the parseDOM function removing the feature
detection from it + solved FOUC at image creation, assigning the src
attribute before injection