Non-fatal error when no ref image found

Previous version crashed with ambiguous error in that case. Now,
only test with missing image will be failed with StateError.