updated draw default rectangle function