moved reshape to utils, since its not really a drawing function and utils uses it