added picture count
higher execution time
new set pan speed-function
new startswith-function
use configured picture-count
set pan speed at the beginning