move image to controller
add protection logic
change resume