Revert "trying to fix conversion to bitmap"

This reverts commit af2356d603ecccff7abb6621d0853298110d6dd1.
before adding opencv