Thumbnail decoding challenge

A small Sunday challenge for people who like image processing and are better at it than me.