fix image upload; unlink Media from products and variants when deleting them