make short description generation algorithm work with description that contain images