Added some pre-processing (gaussian blur).
Fixed indentation.
Added some post-processing and removed pre-processing.