code optimalization + scanner images tree (context menu)