Added code to scale and handle frames smoothly