How can I change the brightness of html embedded images?

I figured out the correct way to write it :stuck_out_tongue:

.canvasimage img {
    filter: brightness(50%);
}