fixed events image insertion