Simple functions to load images.