Tweaked blur code in order to make it sync with the camera