bug fix: conversion to opencv images