Already know that, that's why i said "This code needs to be replaced (bytearray to picture conversion needed)". It will be easier to solve if we reduce it to find another way to make that conversion.