updating pictures and set the code to the right file