Add application.init(), simplify SimpleImage sample