main: Allow to pass different devices and height/width

No match.