venueimage was lost because of endif on the wrong place