You can add you picture to your entities using Customizing entities - Home Assistant
Then, you can use 'icon-type: entity-picture` to use it in any card.
For information, all card options are available from the UI editor. If you’re adding additional option to yaml, it certainly won’t work.