Added tint function to image