fixed jpg extension case