That's brilliant, thanks André! I also like what you've done with the maximum height of the image, how would I go about modifying it so it would also limit the width of the image. Say, only allow a height of 170 or less, and a width of 200 or less. Thanks again! Alex