fix removing images