Added color variable to paintPixel function
Replaced homemade drawBitmap function with a modified  stock version

(and added the clearCanvas function)
Implemented the clear function into the clear menu

and tweaked the menu