fixed html generator and roi extractor