Set image texture "Frames" parameter to length of video upon opening video file

When you open a video file as an image texture, you usually need to set the duration of the video file, this duration is meant to be adjusted based on the segment you will read from. By default, this value is reset to 1 whenever you load a file. Instead, it should be reset to the total number of frames in the opened file.