Great shot; that's a male Western Diamondback, if you didn't know already.
The behavior you saw near the end where it was coming towards you was not aggressive - they will still try to get to where they 'feel' safe, even if that is on the other side of a threat. Though it was in a defensive position, you were not in danger at the distance you were shooting from.
Let me know if you have any questions about him.