Updated changeProfileImage() to read parameters from JSON file and included functionality to return a JSON success statement if function completes