Canvas cast in Image::render()