added legend and pictures to mex_flicker