Adds img line to yaml and new image file