Change of an attribute src seems to interupt other functions, even those not connected to the img. They don\'t work properly although when the line of code changing the attr