added check for image to event post layout