fix copy_file logic typo in storeProductImage