Refactor gesture
Check for mask for rendering texture in android