Added resize to the API