After putting the flags in wp-content/polylang, you have to refresh the cache.
For whatever reason, Polylang caches the flags. When changing the flags to a custom one, you have to refresh the cache. You can do this by going to the Polylang settings page and press the save button without making any changes.