Update previewImage.js