dmtx: add decoder timeout and resize prior to decoding