Added enum for pic types and formatted code.