I have been trying to solve this problem with my camera, after several failed attempts, I decided to call for your help. Unfortunately I cannot clearly explain my problem in text, so I am leaving my .capx, a small video and photos of my code.
Video: youtu.be/jznDsEjjf_k
.capx: goo.gl/iPOLix
Code: