Changed generation of permanent directory

Permanent directory for images is now constructed using the model class
name, not verbose name. This change was made, because if the verbose
name contained language-specific characters, utf-encoding sometimes
failed in directory names.