public static void saveImageAsJpeg(String src, String dest,
			int formatWidth, int formatHeight) throws IOException {
		File saveFile = new File(dest);

		BufferedImage destImage = imageZoomOut(src, formatWidth, formatHeight);
		ImageIO.write(destImage, "JPEG", saveFile);
	}