fix thumbnail compatible to ie8/7 and quirks mode