fixed bmep issue with filenames. cleaned bmep_old code for ivar and var images