Update note attachment on displaying image and video