Add option to build image using buildapp.