Transfer all attributes to the img element