Fixed issue with QPainter. Damnit QPainter >.>. Using native painting now.
Added bucket tool.
Fixed small bug with splines introduced in the last commit.