Revert "Removing functionality for creating thumbnails of image files as we don't use it anywhere in Valhal"

This reverts commit d41b3d0270e03ef8b774ba3c355f3b619844c226.
We need the thumbnails for displaying BasicFiles on the GUI