I decided to move the logic with YII on Yii2 and a problem with the routing entry.
//yii1
'image/<id:\d+>*' => array('image/get'),
But it doesn't work on YII2
//yii2
'image/<id:\d+>*' => 'image/get',
How to write the route to get function takes a variable number of arguments?