Some rules to rank photos automatically.