A simple function to tint PNG images.