Gallery: Fixed variable referrence to thumbnail_path.