Keep progress bar displayed while image processing.

And also refactor Image sampling task.
Extract ViewerActivity.cancelSetImageTask method.
Write a log when capture image url creation failed.

This is a verification code against issue #1.