Added tests for legacy Image::resize()