#44: Added paint funcion.