modify get image function to index page
Merge remote-tracking branch 'origin/master'