add video scale code