Sorry, not in imread, width() and height() are swapped. lol.