Trim whitespace
Refactor data url out into a single variable
Clean up template