Undefined written in the bottom of my picture pop up window