Bugfixed DS calculation and improved image drawing.