Fix bgr conversion memory leak

Fixes #2221 with the fix suggested by @tito. I'm also not sure why the decref is needed, but it seems to fix it. I asked on the cython mailing list, but there was no answer for this.