workaround thumbnail generation