add script for KTH frame generating