Dialog to confirm application exit
format source code
exit dialog when closing.
Using executors.
using lambda instead of Task to save image.
using lambda instead of Task to save image.
refactor loading properties.