width and height flags swapped