blurring seems not seg fault, but copying to padding can be improved instead of just copying neigbor pixel