helpers and javascript written for multiple images