Update showImages.js

Fix to issue #1672 on function handleMediaLoad by adding a debounce.
Merge pull request #1675 from diogorolo/patch-2

Partial fix to issue #1672