Cache the photo and upload thumnail pic