added android code for resizing images before sending back the urls