new function to get url, image or type from platform