Extending config hooks to allow control of disk image size