add thumb method and call in views for images