Add pre-update resource listener

Fixed error when added an empty product image entity
This is not PSR2 and you should not use FQDN