bug in timing code
encode: allow image data to be null
make opj_codec_t re-usable for compression
allow opj_image_t to be re-used for compression