rect position and size scale

using a scale for circle size and functions to calculate rect position