libavcodec/libopenjpegenc: enable lossless option, remove layer option, and improve...