Fixes image field + added onBeforeDelete onAfterDelete methods