General functions

Init function
Creation of colored overlay using most occuring color of the image and
alpha set to 0.8
Set the text color to black or white depending on the overlay color