@nightshining refined program with added classes. Started working with ofxCoreImage