Set a frame size that fits in RAM