[5] figure detection

Signed-off-by: Yury Kaliada <fut.wrk@gmail.com>