first version of image play loop
added repeat checkbox