Mimic the style of the Pinterest tiles in HTML5 canvas