fixing template for edit event bcs it did not show image if there was a previous one