image and showimage wrong index #2275

Fixed template tags image and showimage not looking for the right index in case image is an array.
Merge pull request #2290 from nlemoine/master

image and showimage wrong index #2275