callback on finish writing thumbnail