modified headblur to avoid crash when cv2 is missing