fixed thumbnail macro