Added sharpen filter
bug fix in memory handling