Refactor uploadCtrl and photoService to add width and height of photo