fix: set random seed in `test_noisy_square_image`

This PR should address random failures of the `test_noisy_square_image` test (as described in #418).

Before this PR, I observed this test occasionally failing in both OSX and Windows.