Refactor demo image creation to be same as SDK usage

Previously, the demo image was created using buildroot's tools and this
made it slightly different than what was created with normal projects.
This patch fixes this. The main change is that the output ext4 file
system will have similar parameters. This makes the demo image slightly
smaller.