fixed a typo in setting the bookmark
defer bookmark commits to a separate thread
added webp test for imghdr