Removed rect coordinates for drawing shapes. It was not necessary.