python API now returns imwidth, imheight of input image