refactored image delete to support both option and product deletes