image: handle chained blocks

20 jobs for !3164 with webp/riff-container in 15 minutes and 43 seconds (queued for 2 seconds)
merge request