moved caputred cg rect to singleton