Complete refactoring of JS code to avoid unnecessary HTTP requests when switching images.
Added a page auto-refresh of 1 hour.