refactor #attachment_url