added error for when user is not logged in
consolidated calls to imageExists()