update API for resize frame