Fix img inheritance