I need to resize an image as a thumbnail.
I need to compute the correct dimensions by keeping the ratio.
The params are :
old_x, old_y (the current dimensions of the image),
new_w (the width of the thumbnail), new_y (the height of the thumbnail)
The new values must be assigned in thumb_w and thumb_h