For consistency, please use `image.get('preferredKernel', None)` as the line bellow.

Otherwise LGTM, +1