Adding JPEG encoder tests and restoring disableEOI property