Improve readability of load_image()