Move the timestamp_filename function out of Attachment