Added checks for direct2d operations returning HRESULTs
Removed unnecessary statement which was used to eagerly acquire a direct2d resource
Removed  a non-conforming whitespace
Implemented the wxMemoryDC based graphics context.