Changed logic of calls to test for new image.
Merge branch 'feature/rest_scanned_document' into release/1.2.1-cardiff