switched to jpeg successfully