Ah I see, it's line 173 of your code! (Abigail joke?) Just kidding. :-)
Can you show us your code? Otherwise we can only guess what's happenning... The copyResized and copyResampled methods will stretch or shrink the image to fit the given thumbnail dimension, but could be something to do with not closing the image file properly? Binmode on Windows platform?