Made matlab output JPEG