Fixed depth issue and made object recognition more precise.
Relative coordinates for dynamic resizing