update rote-image

add a more elegant way