A simple way to handle canvas