init for window onload, rename links, auto load latest image, change file naming format