Writes the image to a file with the filename + an appropriate suffix, like "Image.jpg". The suffix is automatically set by the
@param filename the filename
@throws IOException When somethings wrong with the corresponding file.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.