LegacyImageMap: refactor method toggleLegacyMode
LegacyImageMap: refactor method toggleLegacyMode

To increase readability split method toogleLegacyMode
into two methods:
* method enterLegacyMode
* method leaveLegacyMode

imagej/imagej-legacy,imagej/imagej-legacy,imagej/imagej-legacy,imagej/imagej-legacy