updated rect inflate/inflate_ip for proper positioning