Implement ImageStack and ImageLoader classes