* Move I/O to executor thread pool * Check if image is in whitelist_external_dir * Move import to top of file * Fix bad indentation
* Move I/O to executor thread pool * Check if image is in whitelist_external_dir * Move import to top of file * Fix bad indentation