AsyncTask implemented for resizing photo