made AddImage work without jpeglib, too