Canvas conditional statement

So, I can't show/hide image already on Canvas?
It's mandatory using images on web?