Add unit tests of image.resize function
(#461)