update remove images function

Signed-off-by: Andre Dublin <81dublin@gmail.com>