Fix error in image.resize unit test.
(#461)