Changes to read image source from dom custom data attribute