updates images and keys