Restoring images