Refactor API controller to remove unused methods
Added saving of data to profile image saving