Add loadImage and loadBgImage