removed the intermediate list in images_transform_product() by using the 'repeat' argument for itertools.product()