def _load_new(self, img_data: str):
self._image = tk.PhotoImage(data=img_data)<EOL>self._image = self._image.subsample(int(<NUM_LIT:200> / self._size),<EOL>int(<NUM_LIT:200> / self._size))<EOL>self._canvas.delete('<STR_LIT:all>')<EOL>self._canvas.create_image(<NUM_LIT:0>, <NUM_LIT:0>, image=self._image, anchor='<STR_LIT>')<EOL>if self._user_click_callback is not None:<EOL><INDENT>self._user_click_callback(self._on)<EOL><DEDENT>
Load a new image.

:param img_data: the image data as a base64 string
:return: None