Use Repo.isCommons() for deciding whether an image is from Commons

Change-Id: Id6b523d218a9abc9e886da4000962c6523d25dc0