added bswap64 to check reported image size