BUGFIX: logging in if required in image download