function imgSize now working

give each event's image height100% or width100% if width is bigger than
heigh or if height is bigger than width