Fixed matlab jpeg outputs