setting up frame size in BufferedFrameIterator