remove jpeg extension