You could crop (just use different parameters for the copy function) but that would make the thumbnail rather useless.
I think it would be better to just have a max width and height, and adust the image size so that the width-to-height ratio remains the same as in the original.