Implement doctrine event for post image upload, modification and remove.