Image details and controlled session added with functions and tests

Image details added with functions and tests, controlled session
functions and tests added