Remove some unused imports, and enable asynchronous loading of Image. (cherry picked from commit 0ed5e08d)