Change name of function "getPHotos" to more descriptive "getDeviceMedia"
Change calls to getPhotos() to getDeviceMedia()