Efficiency improvements for imageset