take only .jpg images