ver 1.1, replace JPEGCodec import with reflection