Mostly bug fixes in thumbnail generation
Merge branch 'prototype' of https://github.com/henkelund/memobox into prototype