Set Transparent Colour in Image

I would like to be able to add an image and set a specific colour to be transparent. It might look bad if used on images with gradients, but it could be very cool if used on drawings or images with areas of solid colour.