Changed the way brightness was implemented. It should now also work when a drawing color or alpha value other than opaque white is used.