getting link for photo attachment