Update analyze.cpp

imwrite added.