GUI: perform frame merges using C routine