def get(self, size, create=True):
if self._thumbnails is None:<EOL><INDENT>self._refresh_cache()<EOL><DEDENT>thumbnail = self._thumbnails.get(size)<EOL>if thumbnail is None:<EOL><INDENT>thumbnail = images.get(self.source_image.name, size,<EOL>self.metadata_backend, self.storage)<EOL>if thumbnail is None:<EOL><INDENT>thumbnail = self.create(size)<EOL><DEDENT>self._thumbnails[size] = thumbnail<EOL><DEDENT>return thumbnail<EOL>
Returns a Thumbnail instance.
First check whether thumbnail is already cached. If it doesn't:
1. Try to fetch the thumbnail
2. Create thumbnail if it's not present
3. Cache the thumbnail for future use