allow to group imagesi, improve switching