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