Add more API tests, fix issue with sending width/height params