refactor window load event to index view and image render to holder