successfully getting image and make a new dom element