A visibility based model for restoration of archived films