Small fixes for logout

Change the way the images were retrieved

Signed-off-by: Mihaela Martinas <martinas.mihaela21@gmail.com>