Add support for different size SPI flash chips, and update the flash export to skip the media data when calculating size