zlib are used to compress image data
remove temporal file