fixed null check for entity thumbnail
added check for not existing entity image
crop entity image instead of scaling it
Merge branch 'DDBNEXT-1406' into develop