put load image function in ImageManager class