Process on every change the inner g of an img