fix thumbnail not shown for pdf item

Display jpg thumbnail for pdf item