webgl #imageSlider change: Ensure currentFrameIndex stays of type int