Image analysis for converting muscle activity of D. melanogaster flies into quantitative patterns