Refactor thumbnail creation.
Fix wrong calculation of thumbnail offset. Use embedded cover, if a thumbnail is missing. Also return empty image, if the cover is not available. I don't think that returning first image is a good solution. In my opinion it's confusing and not really useful.