1. post dri type to server
2. integrate spectra code to gen images