updating js for img

got the img tag working