[BUGFIX] Generate thumbnails for files without width/height