12145 rnd settings

Fix NPE reported by Petr.
Fix issue in web when admin tries to view his/her thumbnails for another user images.