made the movietype variable so that image sequences work as well