Remove duplicate PDF mime type definition
Move repeated square grid code to loop
Add specific timezone for Time.now stubbing

* Should fix Travis CI build