You're right - I'll have to have another look at that. I don't think passing in the height is the right answer - we still want the aspect ratio to be right regardless. We just might want to adjust the scale so that both width and height fit in the on-screen area. I think instead of passing in thumbnailWidth, I should pass in a rect that is the on-screen area, and scale to fit that.