MVE: Added rectangle drawing function