added hashcode generation for models to use it to automatically rename files and thumbnails