Extract core blur routine into class method

Extracted blur function can be used from external code with raw image buffer.