Moving Rect Translation Code to ImageView class