fixed thumbnail creation. replace tabs with space