Add size option and checks to flash_rom