Overwrite ImageFactory Block in Magento2

I'm trying to override the way the images in the catalog, checkout, and shopping cart load slightly differently than Magento does by default.

That's why I'm trying to create a module that changes ImageFactory.php to me.

Module structure:

Enter the image description here

I have created a suitable one di.xml:


In ImageFactory, I changed the module loaded by Magento2, which is located correctly in the tree.

Neither the file nor the ImageFactory is called by Magento. The module is actively being read by Magento because I see the settings for adminhtml that I have configured in config.xml.