Class to control image loading