Picture size is equal to the elevation matrix pixel size defined in Map properties. It has a direct impact on program performance. The amount of calculation increases by the square of picture side, as well as the memory needed. First try small pictures (400x400) to test your machine.