support loading jpg files without extension