Use Cake tmp folder instead of system tmp dir for temporal files generated by filters

Some filters generate temporal files to system tmp dir, and in some hosts access to this folder is usually disabled via open_basedir. Thus, using Cake's TMP folder avoids this issue.