Created a more generic method for drawing pixels in the graphics module
Removed unused functions