The hidden link between image quality and diagnostic confidence