accept .jpg extension