thumbnail creation bug now kind of fixed

Working ok in Chrome.

Signed-off-by: filipe garcia <filipe.c.garcia@gmail.com>