Added update image source functionality