Extract image-loading functions to loader.py