Drawing basic compounds in canvas