added a helper to create thumbnail in fewer lines

Signed-off-by: Joseph Morse <tamed.lionheart@gmail.com>