Added loop option for frames playback