Add documentation for img creation and patching.