Added prepareImagePath, loadImage methods