I have a function that will be repeatedly called in a nested for loop. In total, the function will process 1066 images. For 10% of these images, I want to resize them to lar