Update showImages.js

Fix to issue #1672 on function handleMediaLoad by adding a debounce.