fixed sharpen filter (should have been writing to separate image)