added thumbnail view mode for images