Move Paperclip-specific callback definitions into HasAttachedFile