operation and template image selection is working