Don't try to make a backup copy of index.html unless
index.html already exists.
Put quotes around the "new images added" message so the
resulting index will be valid PHP even before editing.