Fix saving for attachment post type
Should probably be actually using the prefix since we've gone to the trouble of making it a class setting
Cleaning code formatting