Applying Artificial Intelligence to Mitigate Effects of Patient Motion or Other Complicating Factors on Image Quality