fixed canvas to show rectangle