getImageFromHTML function added