Fix error and improve code of image_app_simple
#41
+38
−34
image_app_simple
#41