Make white backgrounds transparent in obstacle images

The roadblock and spike images

I used Photoshop. I created a layer mask for the images that was the inverse of the images themselves, and then filled in any parts I wanted to be solid with white using the rectangle tool.