Generate thumbnail on view
Practices code fix