Rename s -> numImages / d -> lastImageIndex and update showImage function
Refactor Handle Sticky Header function