attached is a zip which has 2 files, 1 for the snippet code and 1 for the image functions.
take the "SingleImageUploader.snippet.php" and use it for your snippet code, or tear it apart and use just the parts you need.
put the "image_functions.php" file somewhere on your server and adjust the path in the top of the snippet.
there are a few spots in the resize part which are still hard coded ( the max width and the new width required) but the code is simple to see what and where to modify. It is currently set up to create 88x89 pics.
any questions I’ll be glad to answer...