Added attachment switch to asset uri helper

Signed-off-by: Tom Wright <tom@inflatablecookie.com>