Returns either an Object to load an SVG file or an Image to load a PNG file.