only jpg works for analyze.m