addded delegate methods for loading images