add firstFrame and lastFrame option