refactoring code
pixel fixes - now it draw a pixel