as only local image files are alowd cleanup that path handling code