Restructured source tree and implemented shared context
Added line drawing and separated screen size and image size