Finish adding image-derive command (was briefly called image-create). Has tests.