g::thumbnail_from_image_tag fix