Modify the decode function to make it can return the bitmap of a video thumbnal  when the mimetype of the passed uri is the video type.