Added toBufferedImage, fixes JpegWriter
Changed MimeTypeChecker to use Format
Ported tests using java.awt