preview.cpp add effects