fix for removing image and for dynamic adding