Added removeAttr() to the $img

Performance. Grab only images that src attribute was set.