update image picker function