use jpeg to work on mavericks