To modify the function for generate thumbnail