Police in Ottawa, Canada said bystanders were able to rescue a driver whose car sank into an icy river last weekend — but not before the driver snapped a selfie from on top of the partially submerged car.

In the videos and pictures posted on social media below, witnesses claim the driver appeared to be speeding on the river before his car started sinking. Just moments before being rescued, the driver then allegedly took a selfie while standing on the roof of the sinking car.

According to police, the driver has been charged with one count of dangerous operation of a motor vehicle.