Implemented drawing with capsules for better quality.