what you can do it simply the follow:
change this part of your code (actually you should just add a line):
YOUR CODE:
Caman("#photoCanvas", "images/183411_1871156496150_3955828_n.jpg", function () {
// If such an effect exists, use it:
if( effect in this){
this[effect]();
this.render();
}
});
HOW YOU NEED TO CHANGE IT:
Caman("#photoCanvas", "images/183411_1871156496150_3955828_n.jpg", function () {
// If such an effect exists, use it:
if( effect in this){
//NOTE THIS IS THE LINE THAT I ADD FOR YOU:
this.revert();
this[effect]();
this.render();
}
});
Hope now it works cool:))
Please let me know:)
Best Dinuz