GuestureImage task update.

New logic implemented and bug fixes.