change painte rec target to fill with the rec and change size as the rec