Opencv js resize