thumbnails.get_thumbnail should be used to generate thumbnails from python code. It takes the
original image and size is positional arguments and needs to be passed each time the function is
called. Other options can be passed as keyword arguments. The available options is listed below:
.. autofunction:: thumbnails.get_thumbnail