Pre and post draw steps for 2d contexts that scales the canvas for retina support (fixes #51)