how to photo editing using r studio