Move rectangle to utils.