allow init image via opencv mat