fixed an error with password recovery

if there's no image to be processed it should not be processed