release opencv images at end of process zlib