Changed rectangle stuff so it should work w/ offsets now.