publish: support 2 levels deep in images folder

generated from commit 624419a5fbdf28a97429af10ce44b79b65454c8c