Fix onion image control

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>