Imported old drawing routines from original sharppy