add default jpg extension only for local files