Fixed so right data attribut is set in image template