only remove image from image list if it doesn't exist.
unnecessary else