Added a compressImage() function to ImageUtilities