Moved image saving to AsyncTask