Actually, it might be easier to just resize it when you're loading it back into your HTML document. You CAN specify the size that the image loads back into your document at, but obviously there will be distortion unless every pic. is a perfect square, etc.
Perhaps check out ImageCopyResized()...