This will break stuff because in most places that is used right now the caption is omitted and now you made it mandatory..

Set the caption to `caption=None`