fix framerate with large images webcam