rewrote the thumbnail generation to use a generic thumbnail and padding size and manage aspect corrected thumbnails, implemented basic behavior of ExportImageFrame just to test if everything works correctly