On device, the decompress could ignore the padding bytes, thus we should store only the raw image data length as decompressed data length in image file. Signed-off-by: Neo Xu <neo.xu1990@gmail.com>