added propably useful snippet to read average rgb-value from image