Update PaintActivity.java

put bitmap write/compress to background thread.