images loading in separate function

also added fullscreen, disable ESC key function not working