Tried to improve stream loading but I can't get imdecode of OpenCV2 to
work. Maybe look for a different lib that actually focussed on loading
and decoding images.