Clean up template
Fix cover image bug