added img states / events and linked them

Signed-off-by: Anselm Hannemann <anselm@novolo.de>