draw rectanlges in pattern app