CFY-279 added check to verify image was retrieved correctly