Source: https://mobilesyrup.com/2015/01/16/how-to-install-an-android-factory-image-onto-a-nexus-device/