modified thumbnail href handling to better handle both absolute and relative paths