Fix rarity image for preview pane.
Change data_dir to point to user's home directory in an os independent manner.