fixes bugs: repeating images and stablizes image onevent creation