Center the text of the images when drawing strings
Minor changes
Added black&white calculation based on background brightness