Moved PixelPainter class to separate file. Made methods for other functionalities